
import axios from "axios";
axios.defaults.baseURL="http://127.0.0.1:3001/";

//试题表——渲染搜索分页
const questionAPI=(params)=>{
    return axios.get("/hwb/question_list",{params})
}
const questionAPI_add=(params)=>{
    return axios.post("/hwb/question_add",params)
}
const questionAPI_del=(params)=>{
    return axios.post("/hwb/question_del",params)
}
const questionAPI_edit=(params)=>{
    return axios.post("/hwb/question_edit",params)
}
const questionAPI_status=(params)=>{
    return axios.post("/hwb/question_status",params)
}
const questionAPI2=(params)=>{
    return axios.get("/hwb/question_list2",{params})
}
const stageAPI=(params)=>{
    return axios.get("/hwb/stage_list",{params})
}
const academyAPI=(params)=>{
    return axios.get("/hwb/academy_list",{params})
}
const stageAPI_add=(params)=>{
    return axios.post("/hwb/stage_add",params)
}
const stageAPI_del=(params)=>{
    return axios.post("/hwb/stage_del",params)
}
const stageAPI_echo=(params)=>{
    return axios.get("/hwb/stage_echo",{params})
}
const stageAPI_edit=(params)=>{
    return axios.post("/hwb/stage_edit",params)
}


export {
    questionAPI,
    questionAPI_add,
    questionAPI_del,
    questionAPI_edit,
    questionAPI2,
    stageAPI,
    academyAPI,
    stageAPI_add,
    stageAPI_del,
    stageAPI_echo,
    stageAPI_edit,
    questionAPI_status
};